package com.vhall.component.entity.praise.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/6/15
 */
@Data
public class RoomLikeReqVO implements Serializable {

    @ParamName("room_id")
    @JsonProperty("room_id")
    @NotBlank(message = "roomId 不能为空")
    private String roomId;

    @NotNull(message = "num 不能为空")
    @Range(message = "参数异常", min = 1, max = 5000)
    private Integer num;

    @ParamName("vss_token")
    private String vssToken;

    @Max(value = 1, message = "参数异常")
    @Min(value = 0, message = "参数异常")
    private Integer type;

}
